﻿namespace JoinBox
{
    //发送esc
    public class SendEsc
    {
        public static string Esc()
        {
           
            string esc = "";
            string cmds = CadSystem.Getvar("cmdnames");
            if (cmds.Length > 0)
            {
                int cmdNum = cmds.Split(new char[] { '\'' }).Length;
                for (int i = 0; i < cmdNum; i++)
                    //esc += '\x03';
                    esc += '\x1B';  //ASCII码是esc=0x1B(尚未验证此处)
            }
            return esc;
        }
    }
}
